<!DOCTYPE html>


<html lang="zn-CH">


<head>
  <meta charset="utf-8" />
    
  <meta name="description" content="What I can do is to Do My Personal Best!" />
  
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  <title>
    运维平台常见问题记录 |  小熊的博客
  </title>
  <meta name="generator" content="hexo-theme-yilia-plus">
  
  <link rel="shortcut icon" href="http://www.cdn.adingxiong.com/b5363a06dc744d79a94021492bcefe27" />
  
  
<link rel="stylesheet" href="/blog/dist/main.css">

  
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Shen-Yu/cdn/css/remixicon.min.css">

  
<link rel="stylesheet" href="/blog/css/custom.css">

  
  
<script src="https://cdn.jsdelivr.net/npm/pace-js@1.0.2/pace.min.js"></script>

  
  

  

<link rel="alternate" href="/blog/atom.xml" title="小熊的博客" type="application/atom+xml">
</head>

</html>

<body>
  <div id="app">
    <main class="content on">
      <section class="outer">
  <article id="post-运维平台常见问题记录" class="article article-type-post" itemscope
  itemprop="blogPost" data-scroll-reveal>

  <div class="article-inner">
    
    <header class="article-header">
       
<h1 class="article-title sea-center" style="border-left:0" itemprop="name">
  运维平台常见问题记录
</h1>
 

    </header>
    

    
    <div class="article-meta">
      <a href="/blog/2019/04/17/%E8%BF%90%E7%BB%B4%E5%B9%B3%E5%8F%B0%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E8%AE%B0%E5%BD%95/" class="article-date">
  <time datetime="2019-04-17T09:57:42.000Z" itemprop="datePublished">2019-04-17</time>
</a>
      
  <div class="article-category">
    <a class="article-category-link" href="/blog/categories/%E8%BF%90%E7%BB%B4/">运维</a>
  </div>

      
      
<div class="word_count">
    <span class="post-time">
        <span class="post-meta-item-icon">
            <i class="ri-quill-pen-line"></i>
            <span class="post-meta-item-text"> Word count:</span>
            <span class="post-count">1.4k</span>
        </span>
    </span>

    <span class="post-time">
        &nbsp; | &nbsp;
        <span class="post-meta-item-icon">
            <i class="ri-book-open-line"></i>
            <span class="post-meta-item-text"> Reading time≈</span>
            <span class="post-count">6 min</span>
        </span>
    </span>
</div>

      
    </div>
    

    
    
    <div class="tocbot"></div>





    

    
    <div class="article-entry" itemprop="articleBody">
      
      

      
      <h2 id="192-168-9-101"><a href="#192-168-9-101" class="headerlink" title="192.168.9.101"></a>192.168.9.101</h2><h3 id="运维环境"><a href="#运维环境" class="headerlink" title="运维环境"></a>运维环境</h3><pre><code>leap集群:LEAPV6    Tomcat04,Tomcat05   Geode:30001,30002,35001,35002

项目集群：LCUCTEST  Tomcat06    Geode：30008,35008</code></pre><ol>
<li>启动leap集群的时候，可以正常启动，但是Tomcat日志出现这个</li>
</ol>
<p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190410162256.png" alt></p>
<p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190410162412.png" alt></p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">    警告: JGRP000012: <span class="function">discarded message from different cluster <span class="title">EXAMKS_LEAPCacheBus</span> <span class="params">(our cluster is LEAPCacheBus_LCUCV6DEV)</span>. Sender was 9cbbd92f-8c2e-7157-3e62-<span class="title">b59c0e217491</span> <span class="params">(received <span class="number">5</span> identical messages from <span class="number">9</span>cbbd92f<span class="number">-8</span>c2e<span class="number">-7157</span><span class="number">-3e62</span>-b59c0e217491 in the last <span class="number">79924</span> ms)</span></span></span><br><span class="line"><span class="function">[warn 2019/04/10 16:12:20.982 CST &lt;Sync-phonebookUser&gt; tid</span>=<span class="number">0xbd</span>] Pool unexpected socket timed out on client connection=Pooled Connection to <span class="number">192.168</span><span class="number">.9</span><span class="number">.101</span>:<span class="number">35001</span>: Connection[<span class="number">192.168</span><span class="number">.9</span><span class="number">.101</span>:<span class="number">35001</span>]@<span class="number">1477556984</span> attempt=<span class="number">2</span>)</span><br><span class="line"></span><br><span class="line">[warn <span class="number">2019</span>/<span class="number">04</span>/<span class="number">10</span> <span class="number">16</span>:<span class="number">12</span>:<span class="number">20.987</span> CST &lt;Sync-phonebookUser&gt; tid=<span class="number">0xbd</span>] Pool unexpected socket timed out on client connection=Pooled Connection to <span class="number">192.168</span><span class="number">.9</span><span class="number">.101</span>:<span class="number">35001</span>: Connection[<span class="number">192.168</span><span class="number">.9</span><span class="number">.101</span>:<span class="number">35001</span>]@<span class="number">1477556984</span> attempt=<span class="number">2</span>). Server unreachable: could not connect after <span class="number">2</span> attempts</span><br><span class="line"></span><br><span class="line">[LEAPERROR] [<span class="number">16</span>:<span class="number">12</span>:<span class="number">20</span>] LEAP - 查询缓存数据失败，region:leaporganization</span><br><span class="line">[LEAPERROR] [<span class="number">16</span>:<span class="number">12</span>:<span class="number">20</span>] LEAP - 	</span><br><span class="line">	Type            :	org.apache.geode.cache.query.QueryInvocationTargetException</span><br><span class="line">	Cause            :	org.apache.geode.cache.client.ServerConnectivityException: Pool unexpected socket timed out on client connection=Pooled Connection to <span class="number">192.168</span><span class="number">.9</span><span class="number">.101</span>:<span class="number">35001</span>: Connection[<span class="number">192.168</span><span class="number">.9</span><span class="number">.101</span>:<span class="number">35001</span>]@<span class="number">1477556984</span> attempt=<span class="number">2</span>). Server unreachable: could not connect after <span class="number">2</span> attempts</span><br><span class="line">	LocalizedMessage :	Pool unexpected socket timed out on client connection=Pooled Connection to <span class="number">192.168</span><span class="number">.9</span><span class="number">.101</span>:<span class="number">35001</span>: Connection[<span class="number">192.168</span><span class="number">.9</span><span class="number">.101</span>:<span class="number">35001</span>]@<span class="number">1477556984</span> attempt=<span class="number">2</span>). Server unreachable: could not connect after <span class="number">2</span> attempts</span><br><span class="line">	Message          :	Pool unexpected socket timed out on client connection=Pooled Connection to <span class="number">192.168</span><span class="number">.9</span><span class="number">.101</span>:<span class="number">35001</span>: Connection[<span class="number">192.168</span><span class="number">.9</span><span class="number">.101</span>:<span class="number">35001</span>]@<span class="number">1477556984</span> attempt=<span class="number">2</span>). Server unreachable: could not connect after <span class="number">2</span> attempts</span><br><span class="line">Cause StackTrace:		<span class="number">0</span>  Class:org.apache.geode.cache.client.internal.OpExecutorImpl  Method:handleException  Line:<span class="number">790</span></span><br><span class="line">		<span class="number">1</span>  Class:org.apache.geode.cache.client.internal.OpExecutorImpl  Method:handleException  Line:<span class="number">631</span></span><br><span class="line">		<span class="number">2</span>  Class:org.apache.geode.cache.client.internal.OpExecutorImpl  Method:execute  Line:<span class="number">187</span></span><br><span class="line">		<span class="number">3</span>  Class:org.apache.geode.cache.client.internal.OpExecutorImpl  Method:execute  Line:<span class="number">128</span></span><br><span class="line">		<span class="number">4</span>  Class:org.apache.geode.cache.client.internal.PoolImpl  Method:execute  Line:<span class="number">758</span></span><br><span class="line">		<span class="number">5</span>  Class:org.apache.geode.cache.client.internal.QueryOp  Method:execute  Line:<span class="number">59</span></span><br><span class="line">		<span class="number">6</span>  Class:org.apache.geode.cache.client.internal.ServerProxy  Method:query  Line:<span class="number">69</span></span><br><span class="line">		<span class="number">7</span>  Class:org.apache.geode.internal.cache.LocalRegion  Method:query  Line:<span class="number">10650</span></span><br><span class="line">		<span class="number">8</span>  Class:com.longrise.LEAP.Base.Geode.Extend.GeodeBeanRegion  Method:search  Line:<span class="number">595</span></span><br><span class="line">		<span class="number">9</span>  Class:com.longrise.LEAP.Base.Geode.Extend.GeodeBeanRegion  Method:search  Line:<span class="number">845</span></span><br><span class="line">		<span class="number">10</span>  Class:com.longrise.LEAP.Base.Geode.Extend.GeodeBeanRegion  Method:search  Line:<span class="number">1</span></span><br><span class="line">		<span class="number">11</span>  Class:com.longrise.LEAP.Base.ServiceLayer.Logic.CacheSearch  Method:beanSearch  Line:<span class="number">143</span></span><br><span class="line">		<span class="number">12</span>  Class:com.longrise.LEAP.Base.ServiceLayer.Logic.CacheSearch  Method:beanSearch  Line:<span class="number">109</span></span><br><span class="line">		<span class="number">13</span>  Class:com.longrise.LEAP.Base.ServiceLayer.Logic.QueryService  Method:beanSearch  Line:<span class="number">25</span></span><br><span class="line">		<span class="number">14</span>  Class:com.longrise.Studiov2.User.UserLogic.UserSync  Method:studiov2_syncLeapuser  Line:<span class="number">94</span></span><br><span class="line">		<span class="number">15</span>  Class:com.longrise.Studiov2.AddressBook.SyncPhoneBookTimer  Method:run  Line:<span class="number">31</span></span><br><span class="line">		<span class="number">16</span>  Class:java.util.TimerThread  Method:mainLoop  Line:<span class="number">555</span></span><br><span class="line">		<span class="number">17</span>  Class:java.util.TimerThread  Method:run  Line:<span class="number">505</span>StackTrace:		<span class="number">0</span>  Class:org.apache.geode.internal.cache.LocalRegion  Method:query  Line:<span class="number">10656</span></span><br><span class="line">		<span class="number">1</span>  Class:com.longrise.LEAP.Base.Geode.Extend.GeodeBeanRegion  Method:search  Line:<span class="number">595</span></span><br><span class="line">		<span class="number">2</span>  Class:com.longrise.LEAP.Base.Geode.Extend.GeodeBeanRegion  Method:search  Line:<span class="number">845</span></span><br><span class="line">		<span class="number">3</span>  Class:com.longrise.LEAP.Base.Geode.Extend.GeodeBeanRegion  Method:search  Line:<span class="number">1</span></span><br><span class="line">		<span class="number">4</span>  Class:com.longrise.LEAP.Base.ServiceLayer.Logic.CacheSearch  Method:beanSearch  Line:<span class="number">143</span></span><br><span class="line">		<span class="number">5</span>  Class:com.longrise.LEAP.Base.ServiceLayer.Logic.CacheSearch  Method:beanSearch  Line:<span class="number">109</span></span><br><span class="line">		<span class="number">6</span>  Class:com.longrise.LEAP.Base.ServiceLayer.Logic.QueryService  Method:beanSearch  Line:<span class="number">25</span></span><br><span class="line">		<span class="number">7</span>  Class:com.longrise.Studiov2.User.UserLogic.UserSync  Method:studiov2_syncLeapuser  Line:<span class="number">94</span></span><br><span class="line">		<span class="number">8</span>  Class:com.longrise.Studiov2.AddressBook.SyncPhoneBookTimer  Method:run  Line:<span class="number">31</span></span><br><span class="line">		<span class="number">9</span>  Class:java.util.TimerThread  Method:mainLoop  Line:<span class="number">555</span></span><br><span class="line">		<span class="number">10</span>  Class:java.util.TimerThread  Method:run  Line:<span class="number">505</span></span><br></pre></td></tr></table></figure>

<ol start="2">
<li>尝试重启leap集群geode和项目集群geode，全部启动时间17:15，开始启动项目集群，开始出现问题，又开始重新put数据</li>
</ol>
<p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190410172009.png" alt></p>
<ol start="3">
<li>运维平台的日志  leaperrer.log</li>
</ol>
<p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190410173712.png" alt></p>
<ol start="4">
<li>数据库出现数据混乱的问题 </li>
</ol>
<p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190411150657.png" alt></p>
<p>问题出在city表和country表，数据成倍的增多，出现很多id长度为1-4，<br>在数据中删除id不对的数据</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line">select count(*) from community</span><br><span class="line">union all</span><br><span class="line">select count(*) from province</span><br><span class="line">union all</span><br><span class="line">select count(*) from city</span><br><span class="line">union all</span><br><span class="line">select count(*) from county</span><br><span class="line">union all</span><br><span class="line">select count(*) from street</span><br><span class="line">	&#x2F;&#x2F;数据对比</span><br><span class="line"></span><br><span class="line">select l_strlen(id), * from county order by provinceid, cityid desc</span><br><span class="line">select l_strlen(id), * from city order by provinceid, cityid desc</span><br><span class="line"></span><br><span class="line">select count(*) from city where l_strlen(id) &lt; 32</span><br><span class="line"></span><br><span class="line">— delete from city where l_strlen(id) &lt; 30</span><br><span class="line">	&#x2F;&#x2F;删除id长度不对的数据</span><br></pre></td></tr></table></figure>

<ol start="5">
<li>9.101的  换上了0409的基础包  用的是1.6的geode  leap集群使用的是新的空的数据库  开发机器也是新的geode  之前备份的数据库<br>然后现在出现的是</li>
</ol>
<p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190411163324.png" alt></p>
<p>登录进去没有数据  开发机器日志上暂时没有报错   尝试更换  base基础包</p>
<ol start="6">
<li>leap集群的geode日志显示</li>
</ol>
<p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190411164715.png" alt></p>
<p>开发机器 geode 日志显示</p>
<p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190411164855.png" alt></p>
<ol start="7">
<li><p>服务器启动的端口数量</p>
<p> <img src="https://raw.githubusercontent.com/supbadboy/image/master/20190412102553.png" alt></p>
</li>
<li><p>NVIS项目启动，发现错误日志，但是好像并没有影响到开发机器的正常运行</p>
</li>
</ol>
<p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190412110552.png" alt></p>
<p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190412110857.png" alt></p>
<p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190412111118.png" alt></p>
<h2 id="2019-04-12-日志"><a href="#2019-04-12-日志" class="headerlink" title="2019-04-12 日志"></a>2019-04-12 日志</h2><h4 id="开发机全部更换lib的-LEAP-Studio-Bll-jar包"><a href="#开发机全部更换lib的-LEAP-Studio-Bll-jar包" class="headerlink" title="开发机全部更换lib的 LEAP.Studio.Bll.jar包"></a>开发机全部更换lib的 LEAP.Studio.Bll.jar包</h4><ol>
<li>大概十分钟后Tomcat重复出现get的日志，本地开发机器一个项目，三台机器。</li>
</ol>
<p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190412144937.png" alt></p>
<ol start="2">
<li>开发机挂了之后，重新启动的时候，始终停留在这个界面</li>
</ol>
<p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190412145340.png" alt></p>
<ol start="3">
<li>在开发机器挂掉的情况下，如果开发机器重新，leap集群的geode会出现这个日志</li>
</ol>
<p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190412150043.png" alt></p>
<p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190412170909.png" alt></p>
<ol start="4">
<li>项目集群的geode同步的日志跟leap集群geode的日志相同 </li>
</ol>
<p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190412150043.png" alt></p>
<h4 id="leap集群也更换lib的-LEAP-Studio-BLL-jar包，暂时只重启leap集群Tomcat"><a href="#leap集群也更换lib的-LEAP-Studio-BLL-jar包，暂时只重启leap集群Tomcat" class="headerlink" title="leap集群也更换lib的  LEAP.Studio.BLL.jar包，暂时只重启leap集群Tomcat"></a>leap集群也更换lib的  LEAP.Studio.BLL.jar包，暂时只重启leap集群Tomcat</h4><ol start="5">
<li>更换新的包之后  在leaperror.log里面看到的错误信息</li>
</ol>
<p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190412183018.png" alt></p>
<h2 id="20190416-在101运维平台开始部署测试leap集群，分别部署到两个运维平台"><a href="#20190416-在101运维平台开始部署测试leap集群，分别部署到两个运维平台" class="headerlink" title="20190416 在101运维平台开始部署测试leap集群，分别部署到两个运维平台"></a>20190416 在101运维平台开始部署测试leap集群，分别部署到两个运维平台</h2><h3 id="geode创建成功，member成员显示成员都存在，但是状态是灰色的"><a href="#geode创建成功，member成员显示成员都存在，但是状态是灰色的" class="headerlink" title="geode创建成功，member成员显示成员都存在，但是状态是灰色的"></a>geode创建成功，member成员显示成员都存在，但是状态是灰色的</h3><p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190416110922.png" alt></p>
<h3 id="首次启动Tomcat的时候，遇到从未看到的日志"><a href="#首次启动Tomcat的时候，遇到从未看到的日志" class="headerlink" title="首次启动Tomcat的时候，遇到从未看到的日志"></a>首次启动Tomcat的时候，遇到从未看到的日志</h3><p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190416110438.png" alt></p>
<h3 id="前端方法调用过度导致内存不足"><a href="#前端方法调用过度导致内存不足" class="headerlink" title="前端方法调用过度导致内存不足"></a>前端方法调用过度导致内存不足</h3><p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190416142143.png" alt></p>
<h3 id="0423-项目集群运行的时候出现这个错误"><a href="#0423-项目集群运行的时候出现这个错误" class="headerlink" title="0423 项目集群运行的时候出现这个错误"></a>0423 项目集群运行的时候出现这个错误</h3><p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190423174034.png" alt></p>
<ul>
<li>这种情况可能是geode的servser出现错误，尝试重启geode</li>
<li>更换leap集群的基础包</li>
</ul>
<p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190423174216.png" alt></p>
<ul>
<li>删除geode重现创建新的geode</li>
</ul>
<h3 id="0425-运维平台开始变的卡顿，点服务清单和系统清单卡顿，安装geode超时，显示失败"><a href="#0425-运维平台开始变的卡顿，点服务清单和系统清单卡顿，安装geode超时，显示失败" class="headerlink" title="0425 运维平台开始变的卡顿，点服务清单和系统清单卡顿，安装geode超时，显示失败"></a>0425 运维平台开始变的卡顿，点服务清单和系统清单卡顿，安装geode超时，显示失败</h3><p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190426092357.png" alt></p>
<p>在geode清单上显示geode的状态都是没问题，这个时候会出现两种情况，</p>
<p>一种是geode安装成功，后台服务可以正常启动</p>
<p>一种是geode安装失败，本地开发机器运行的时候会出现两种错误</p>
<p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190423174216.png" alt></p>
<p><img src="https://raw.githubusercontent.com/supbadboy/image/master/20190426092348.png" alt></p>
<ul>
<li>问题还在解决中…s</li>
</ul>

      
      <!-- reward -->
      
      <div id="reward-btn">
        Donate
      </div>
      
    </div>
    
    
      <!-- copyright -->
      
        <div class="declare">
          <ul class="post-copyright">
            <li>
              <i class="ri-copyright-line"></i>
              <strong>Copyright： </strong>
              Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
            </li>
          </ul>
        </div>
        
    <footer class="article-footer">
      
          
<div class="share-btn">
      <span class="share-sns share-outer">
        <i class="ri-share-forward-line"></i>
        分享
      </span>
      <div class="share-wrap">
        <i class="arrow"></i>
        <div class="share-icons">
          
          <a class="weibo share-sns" href="javascript:;" data-type="weibo">
            <i class="ri-weibo-fill"></i>
          </a>
          <a class="weixin share-sns wxFab" href="javascript:;" data-type="weixin">
            <i class="ri-wechat-fill"></i>
          </a>
          <a class="qq share-sns" href="javascript:;" data-type="qq">
            <i class="ri-qq-fill"></i>
          </a>
          <a class="douban share-sns" href="javascript:;" data-type="douban">
            <i class="ri-douban-line"></i>
          </a>
          <!-- <a class="qzone share-sns" href="javascript:;" data-type="qzone">
            <i class="icon icon-qzone"></i>
          </a> -->
          
          <a class="facebook share-sns" href="javascript:;" data-type="facebook">
            <i class="ri-facebook-circle-fill"></i>
          </a>
          <a class="twitter share-sns" href="javascript:;" data-type="twitter">
            <i class="ri-twitter-fill"></i>
          </a>
          <a class="google share-sns" href="javascript:;" data-type="google">
            <i class="ri-google-fill"></i>
          </a>
        </div>
      </div>
</div>

<div class="wx-share-modal">
    <a class="modal-close" href="javascript:;"><i class="ri-close-circle-line"></i></a>
    <p>扫一扫，分享到微信</p>
    <div class="wx-qrcode">
      <img src="//api.qrserver.com/v1/create-qr-code/?size=150x150&data=https://bodboy.gitee.io/blog/2019/04/17/%E8%BF%90%E7%BB%B4%E5%B9%B3%E5%8F%B0%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E8%AE%B0%E5%BD%95/" alt="微信分享二维码">
    </div>
</div>

<div id="share-mask"></div>
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/blog/tags/Linux/" rel="tag">Linux</a></li></ul>


    </footer>

  </div>

  
  
  <nav class="article-nav">
    
      <a href="/blog/2019/04/28/postgres%E6%95%B0%E6%8D%AE%E5%BA%93%E4%B8%8D%E8%83%BD%E7%94%A8ip%E5%9C%B0%E5%9D%80%E8%AE%BF%E9%97%AE%E7%9A%84%E9%97%AE%E9%A2%98/" class="article-nav-link">
        <strong class="article-nav-caption">上一篇</strong>
        <div class="article-nav-title">
          
            postgres数据库不能用ip地址访问的问题
          
        </div>
      </a>
    
    
      <a href="/blog/2019/04/17/%E5%A6%82%E4%BD%95%E5%9C%A8linux%E6%9C%8D%E5%8A%A1%E4%B8%8A%E5%88%9B%E5%BB%BAsamba%E6%96%87%E4%BB%B6%E5%85%B1%E4%BA%AB%E6%9C%8D%E5%8A%A1/" class="article-nav-link">
        <strong class="article-nav-caption">下一篇</strong>
        <div class="article-nav-title">如何在linux服务上创建samba文件共享服务</div>
      </a>
    
  </nav>


  

  
  
<!-- valine评论 -->
<div id="vcomments-box">
    <div id="vcomments">
    </div>
</div>
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
<script src='https://cdn.jsdelivr.net/npm/valine@1.3.10/dist/Valine.min.js'></script>
<script>
    new Valine({
        el: '#vcomments',
        app_id: 'uW8QYGvvhWmNWdiwpznJ0GVa-gzGzoHsz',
        app_key: 'LrJhMzx9qEwcMV1DJjTI6f6C',
        path: window.location.pathname,
        notify: 'false',
        verify: 'false',
        avatar: '[object Object]',
        placeholder: '给我的文章加点评论吧~',
        recordIP: true
    });
    const infoEle = document.querySelector('#vcomments .info');
    if (infoEle && infoEle.childNodes && infoEle.childNodes.length > 0) {
        infoEle.childNodes.forEach(function (item) {
            item.parentNode.removeChild(item);
        });
    }
</script>
<style>
    #vcomments-box {
        padding: 5px 30px;
    }

    @media screen and (max-width: 800px) {
        #vcomments-box {
            padding: 5px 0px;
        }
    }

    #vcomments-box #vcomments {
        background-color: #fff;
    }

    .v .vlist .vcard .vh {
        padding-right: 20px;
    }

    .v .vlist .vcard {
        padding-left: 10px;
    }
</style>

  

  
  
  
  
  

</article>
</section>
      <footer class="footer">
  <div class="outer">
    <ul>
      <li>
        Copyrights &copy;
        2019-2021
        <i class="ri-heart-fill heart_icon"></i> panda
      </li>
    </ul>
    <ul>
      <li>
        
        
        
        Powered by <a href="https://hexo.io" target="_blank">Hexo</a>
        <span class="division">|</span>
        Theme - <a href="https://github.com/Shen-Yu/hexo-theme-ayer" target="_blank">Ayer</a>
        
      </li>
    </ul>
    <ul>
      <li>
        
        
        <span>
  <span><i class="ri-user-3-fill"></i>Visitors:<span id="busuanzi_value_site_uv"></span></s>
  <span class="division">|</span>
  <span><i class="ri-eye-fill"></i>Views:<span id="busuanzi_value_page_pv"></span></span>
</span>
        
      </li>
    </ul>
    <ul>
      
    </ul>
    <ul>
      <li>
        <!-- cnzz统计 -->
        
        <script type="text/javascript" src='https://s9.cnzz.com/z_stat.php?id=1278069914&amp;web_id=1278069914'></script>
        
      </li>
    </ul>
  </div>
</footer>
      <div class="float_btns">
        <div class="totop" id="totop">
  <i class="ri-arrow-up-line"></i>
</div>

<div class="todark" id="todark">
  <i class="ri-moon-line"></i>
</div>

      </div>
    </main>
    <aside class="sidebar on">
      <button class="navbar-toggle"></button>
<nav class="navbar">
  
  <div class="logo">
    <a href="/blog/"><img src="https://portrait.gitee.com/uploads/avatars/user/1007/3023420_bodboy_1578973210.png!avatar200" alt="小熊的博客"></a>
  </div>
  
  <ul class="nav nav-main">
    
    <li class="nav-item">
      <a class="nav-item-link" href="/blog/">主页</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/blog/archives">归档</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/blog/categories">分类</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/blog/tags">标签</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/blog/tags/%E6%97%85%E8%A1%8C/">旅行</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/blog/about">关于我</a>
    </li>
    
  </ul>
</nav>
<nav class="navbar navbar-bottom">
  <ul class="nav">
    <li class="nav-item">
      
      <a class="nav-item-link nav-item-search"  title="Search">
        <i class="ri-search-line"></i>
      </a>
      
      
      <a class="nav-item-link" target="_blank" href="/blog/atom.xml" title="RSS Feed">
        <i class="ri-rss-line"></i>
      </a>
      
    </li>
  </ul>
</nav>
<div class="search-form-wrap">
  <div class="local-search local-search-plugin">
  <input type="search" id="local-search-input" class="local-search-input" placeholder="Search...">
  <div id="local-search-result" class="local-search-result"></div>
</div>
</div>
    </aside>
    <script>
      if (window.matchMedia("(max-width: 768px)").matches) {
        document.querySelector('.content').classList.remove('on');
        document.querySelector('.sidebar').classList.remove('on');
      }
    </script>
    <div id="mask"></div>

<!-- #reward -->
<div id="reward">
  <span class="close"><i class="ri-close-line"></i></span>
  <p class="reward-p"><i class="ri-cup-line"></i>请我喝杯咖啡吧~</p>
  <div class="reward-box">
    
    <div class="reward-item">
      <img class="reward-img" src="/blog/images/alipay.jpg">
      <span class="reward-type">支付宝</span>
    </div>
    
    
    <div class="reward-item">
      <img class="reward-img" src="/blog/images/wechat.jpg">
      <span class="reward-type">微信</span>
    </div>
    
  </div>
</div>
    
<script src="/blog/js/jquery-2.0.3.min.js"></script>


<script src="/blog/js/lazyload.min.js"></script>


<script>
  try {
    var typed = new Typed("#subtitle", {
      strings: ['面朝大海，春暖花开', '愿你一生努力，一生被爱', '想要的都拥有，得不到的都释怀'],
      startDelay: 0,
      typeSpeed: 200,
      loop: true,
      backSpeed: 100,
      showCursor: true
    });
  } catch (err) {
  }

</script>




<script src="/blog/js/tocbot.min.js"></script>

<script>
  // Tocbot_v4.7.0  http://tscanlin.github.io/tocbot/
  tocbot.init({
    tocSelector: '.tocbot',
    contentSelector: '.article-entry',
    headingSelector: 'h1, h2, h3, h4, h5, h6',
    hasInnerContainers: true,
    scrollSmooth: true,
    scrollContainer: 'main',
    positionFixedSelector: '.tocbot',
    positionFixedClass: 'is-position-fixed',
    fixedSidebarOffset: 'auto'
  });
</script>



<script src="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.css">
<script src="https://cdn.jsdelivr.net/npm/justifiedGallery@3.7.0/dist/js/jquery.justifiedGallery.min.js"></script>

<script src="/blog/dist/main.js"></script>



<!-- Root element of PhotoSwipe. Must have class pswp. -->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">

    <!-- Background of PhotoSwipe. 
         It's a separate element as animating opacity is faster than rgba(). -->
    <div class="pswp__bg"></div>

    <!-- Slides wrapper with overflow:hidden. -->
    <div class="pswp__scroll-wrap">

        <!-- Container that holds slides. 
            PhotoSwipe keeps only 3 of them in the DOM to save memory.
            Don't modify these 3 pswp__item elements, data is added later on. -->
        <div class="pswp__container">
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
        </div>

        <!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
        <div class="pswp__ui pswp__ui--hidden">

            <div class="pswp__top-bar">

                <!--  Controls are self-explanatory. Order can be changed. -->

                <div class="pswp__counter"></div>

                <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>

                <button class="pswp__button pswp__button--share" style="display:none" title="Share"></button>

                <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>

                <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>

                <!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
                <!-- element will get class pswp__preloader--active when preloader is running -->
                <div class="pswp__preloader">
                    <div class="pswp__preloader__icn">
                        <div class="pswp__preloader__cut">
                            <div class="pswp__preloader__donut"></div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                <div class="pswp__share-tooltip"></div>
            </div>

            <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
            </button>

            <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
            </button>

            <div class="pswp__caption">
                <div class="pswp__caption__center"></div>
            </div>

        </div>

    </div>

</div>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/default-skin/default-skin.min.css">
<script src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe-ui-default.min.js"></script>

<script>
    function viewer_init() {
        let pswpElement = document.querySelectorAll('.pswp')[0];
        let $imgArr = document.querySelectorAll(('.article-entry img:not(.reward-img)'))

        $imgArr.forEach(($em, i) => {
            $em.onclick = () => {
                // slider展开状态
                // todo: 这样不好，后面改成状态
                if (document.querySelector('.left-col.show')) return
                let items = []
                $imgArr.forEach(($em2, i2) => {
                    let img = $em2.getAttribute('data-idx', i2)
                    let src = $em2.getAttribute('data-target') || $em2.getAttribute('src')
                    let title = $em2.getAttribute('alt')
                    // 获得原图尺寸
                    const image = new Image()
                    image.src = src
                    items.push({
                        src: src,
                        w: image.width || $em2.width,
                        h: image.height || $em2.height,
                        title: title
                    })
                })
                var gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items, {
                    index: parseInt(i)
                });
                gallery.init()
            }
        })
    }
    viewer_init()
</script>


<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
      tex2jax: {
          inlineMath: [ ['$','$'], ["\\(","\\)"]  ],
          processEscapes: true,
          skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
      }
  });

  MathJax.Hub.Queue(function() {
      var all = MathJax.Hub.getAllJax(), i;
      for(i=0; i < all.length; i += 1) {
          all[i].SourceElement().parentNode.className += ' has-jax';
      }
  });
</script>

<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.6/unpacked/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script>
  var ayerConfig = {
    mathjax: true
  }
</script>




<script src="/blog/js/busuanzi-2.3.pure.min.js"></script>



<script type="text/javascript" src="https://js.users.51.la/20544303.js"></script>

  
<script src="/blog/js/clickLove.js"></script>



<!-- 复制 -->



    
    <div id="music">
    
    
    
    <iframe frameborder="no" border="1" marginwidth="0" marginheight="0" width="200" height="52"
        src="//music.163.com/outchain/player?type=2&id=1297802566&auto=1&height=32"></iframe>
</div>

<style>
    #music {
        position: fixed;
        right: 15px;
        bottom: 0;
        z-index: 998;
    }
</style>
    
  </div>
</body>

</html>